package game;

import java.util.List;

public class test {
    public static void main(String[] args) {
        //1.买牌
        CardDemo cardDemo = new CardDemo();
        List<Card> cardList = cardDemo.buyCard();
        System.out.println(cardList);
        //2.洗牌
        cardDemo.washCard(cardList);
        System.out.println(cardList);
        //3.有三个人每人发5张牌
        List<List<Card>> lists = cardDemo.pushCard(cardList);

        for (int i = 0; i < lists.size(); i++) {
            System.out.println("第" + i + "个人的牌：" + lists.get(i));
        }
        System.out.println("剩余的牌：" + cardList);

    }
}
